﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;

namespace RechercheEmplois.Models
{
    public class Utilisateur
    {
        public int ID { get; set; }

        [Required]
        public string Nom { get; set; }
        [Required]
        public string Prenom { get; set; }

        public DateTime? BirthDate { get; set; }
        [Required]
        public string TelephoneNum { get; set; }
        [Required]
        public string Email { get; set; }

        public int GroupUtilisateurID { get; set; }

        //Nativigation Property
        public virtual GroupUtilisateur GroupUtilisateur { get; set; }

        public virtual ICollection<Sauvegarde> Sauvegardes { get; set; }

        public virtual ICollection<Postule> Postules { get; set; } 

        [NotMapped]
        public ICollection<Offre> Deposes { get; set; } 
    }
}